<?php
/* @var $this NotesController */
/* @var $model Notes */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'notes-form',
	'enableAjaxValidation'=>false,
)); ?>

	<!--<p class="note">Fields with <span class="required">*</span> are required.</p>-->

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'fldname'); ?>
		<?php echo $form->textField($model,'fldname',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo $form->error($model,'fldname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldsite'); ?>
		<?php echo $form->textField($model,'fldsite',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'fldsite'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'fldfio'); ?>
		<?php echo $form->textField($model,'fldfio',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'fldfio'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldpost'); ?>
		<?php echo $form->textField($model,'fldpost',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'fldpost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldphone'); ?>
		<?php echo $form->textField($model,'fldphone',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'fldphone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldemail'); ?>
		<?php echo $form->textField($model,'fldemail',array('size'=>35,'maxlength'=>35)); ?>
		<?php echo $form->error($model,'fldemail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldmanager'); ?>
		<?php echo $form->textField($model,'fldmanager',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'fldmanager'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flddatemet'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'name' => 'flddatemet',
			'model' => $model,
			'attribute' => 'flddatemet',
			'language' => 'ru',
			'options' => array('showAnim' => 'fold','dateFormat'=>'yy-mm-dd'),
			'htmlOptions' => array('style' => 'height:20px;'),
		));	?>
		<?php echo $form->error($model,'fldDateMet'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flddateend'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'name' => 'flddateend',
			'model' => $model,
			'attribute' => 'flddateend',
			'language' => 'ru',
			'options' => array('showAnim' => 'fold','dateFormat'=>'yy-mm-dd'),
			'htmlOptions' => array('style' => 'height:20px;'),
		));	?>
		<?php echo $form->error($model,'flddateend'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldresultcon'); ?>
		<?php echo CHtml::activeTextArea($model,'fldresultcon',array('class'=>'redactor','rows'=>6,)); ?>
		<?php echo $form->error($model,'fldresultcon'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fldresultend'); ?>
		<?php $listResult = array(
			'Informed' => 'Проинформирован',
			'Denied' => 'Отказ', 
			'Nominee' => 'Номинант',
			'Member' => 'Участник',
			'Sponsor' => 'Спонсор',
			'Reporter' => 'Докладчик',
			'Expert' => 'Эксперт'
		);
		foreach ($listResult as $key => $value) 
		{  
			$listResult[$key] = iconv("windows-1251", "UTF-8", $value); 
		} 
		?>
		<?php echo $form->dropDownList($model,'fldresultend',$listResult); ?>
		<?php echo $form->error($model,'fldresultend'); ?>
	</div>

	<div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить'); ?>
        <?php echo CHtml::button('Cancel',array('onclick'=>"window.parent.$('#cru-dialog').dialog('close');window.parent.$('#cru-frame').attr('src','');")); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php
$this->widget('ext.imperavi-redactor-widget.ImperaviRedactorWidget',array(
    'selector'=>'.redactor',
    'options'=>array(),
));
?>